package com.xinhe.web.controller;

import com.xinhe.web.entity.AdapaySettlementBank;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/adapaySettlementBank")
@Api(value = "adapay结算银行信息", tags = "adapay结算银行信息")
public class AdapaySettlementBankController {
    /*@Autowired
    private IAdapaySettlementBankService adapaySettlementBankService;

    @ApiOperation(httpMethod = "GET", value = "分页查询adapay结算银行信息")
    @RequestMapping({"/pageAdapaySettlementBank"})
    public PageResult<AdapaySettlementBankView> pageAdapaySettlementBank(AdapaySettlementBankQuery query) {
        return this.adapaySettlementBankService.pageAdapaySettlementBank(query);
    }











    @ApiOperation(httpMethod = "POST", value = "保存adapay结算银行信息")
    @RequestMapping({"/saveAdapaySettlementBank"})
    public BaseResult saveAdapaySettlementBank(@Valid AdapaySettlementBankModel model, BindingResult bind) {
        if (bind.hasErrors()) {
            BaseResult result = new BaseResult();
            result.setBindingResult(bind);
            return result;
        }
        return (BaseResult)this.adapaySettlementBankService.saveModel((IdModel)model);
    }











    @ApiOperation(httpMethod = "GET", value = "删除adapay结算银行信息")
    @ApiImplicitParam(name = "adapaySettlementBankId", value = "标识", dataTypeClass = Long.class, required = true)
    @RequestMapping({"/deleteAdapaySettlementBank"})
    public BaseResult deleteAdapaySettlementBank(Long adapaySettlementBankId) {
        return this.adapaySettlementBankService.delete(adapaySettlementBankId);
    }











    @ApiOperation(httpMethod = "GET", value = "adapay结算银行信息详情")
    @ApiImplicitParam(name = "adapaySettlementBankId", value = "标识", dataTypeClass = Long.class, required = true)
    @RequestMapping({"/detailAdapaySettlementBank"})
    public BeanResult<AdapaySettlementBank> detailAdapaySettlementBank(Long adapaySettlementBankId) {
        return this.adapaySettlementBankService.findById(adapaySettlementBankId);
    }*/

}